<?php $view->extend('crud/header', 'content', array('entity' => $entity))?>
<form action="<?php echo $view->url->linkTo('crud_update', array('name' => $entity, 'id' => $id))?>" method="post">


<table>
	
	<?php foreach($fields as $fieldName => $field): ?>
	<tr>
		<th><?php echo $worker->translateField($fieldName)?></th>
		<td><?php $view->import('crud/form_field', array('fieldName' => $fieldName, 'fieldInfo' => $field, 'value' => $entry[$fieldName]))?></td>
	</tr>
	<?php endforeach; ?>
	
	<?php if (count($relations) > 0):?>
	<?php foreach($relations as $fieldName => $rel):?>
		<tr>
		<th><?php echo $rel['worker']->translateField($fieldName)?></th>
		<td>
		<?php $view->import('crud/relationships', array('rel' => $rel))?>
		</td>
		</tr>
	<?php endforeach; ?>
	<?php endif;?>
	<tr>
		<th>Save</th>
		<td><input type="submit" value="Save" /></td>
	</tr>
</table>




</form>

